package com.base.common.persistent.dao;

import com.base.common.persistent.model.Transaction;
import com.cjy.common.annotation.MyBatisRepository;

import java.util.List;
import java.util.Map;


@MyBatisRepository
public interface TransactionMapper {
	int addTransaction(Transaction transaction);
	
	Transaction queryByOut_trade_no(String out_trade_no);
	
	int updateTransaction(Transaction transaction);
	
	List<Transaction> queryByCondition(Map<String, Object> condition);
	
	int queryCountsByCondition(Map<String, Object> condition);

}
